package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysSchoolScoreMapper;
import com.ruoyi.system.domain.SysSchoolScore;
import com.ruoyi.system.service.ISysSchoolScoreService;

/**
 * 操行分信息Service业务层处理
 * 
 * @author 杨皓焜
 * @date 2021-01-31
 */
@Service
public class SysSchoolScoreServiceImpl implements ISysSchoolScoreService 
{
    @Autowired
    private SysSchoolScoreMapper sysSchoolScoreMapper;

    /**
     * 查询操行分信息
     * 
     * @param id 操行分信息ID
     * @return 操行分信息
     */
    @Override
    public SysSchoolScore selectSysSchoolScoreById(Long id)
    {
        return sysSchoolScoreMapper.selectSysSchoolScoreById(id);
    }

    /**
     * 查询操行分信息列表
     * 
     * @param sysSchoolScore 操行分信息
     * @return 操行分信息
     */
    @Override
    public List<SysSchoolScore> selectSysSchoolScoreList(SysSchoolScore sysSchoolScore)
    {
        return sysSchoolScoreMapper.selectSysSchoolScoreList(sysSchoolScore);
    }

    /**
     * 新增操行分信息
     * 
     * @param sysSchoolScore 操行分信息
     * @return 结果
     */
    @Override
    public int insertSysSchoolScore(SysSchoolScore sysSchoolScore)
    {
        sysSchoolScore.setCreateTime(DateUtils.getNowDate());
        return sysSchoolScoreMapper.insertSysSchoolScore(sysSchoolScore);
    }

    /**
     * 修改操行分信息
     * 
     * @param sysSchoolScore 操行分信息
     * @return 结果
     */
    @Override
    public int updateSysSchoolScore(SysSchoolScore sysSchoolScore)
    {
        sysSchoolScore.setUpdateTime(DateUtils.getNowDate());
        return sysSchoolScoreMapper.updateSysSchoolScore(sysSchoolScore);
    }

    /**
     * 批量删除操行分信息
     * 
     * @param ids 需要删除的操行分信息ID
     * @return 结果
     */
    @Override
    public int deleteSysSchoolScoreByIds(Long[] ids)
    {
        return sysSchoolScoreMapper.deleteSysSchoolScoreByIds(ids);
    }

    /**
     * 删除操行分信息信息
     * 
     * @param id 操行分信息ID
     * @return 结果
     */
    @Override
    public int deleteSysSchoolScoreById(Long id)
    {
        return sysSchoolScoreMapper.deleteSysSchoolScoreById(id);
    }
}
